Optimal. Leaf size=261 \[ -\frac {b c}{2 d x}+\frac {b c^2 \tanh ^{-1}(c x)}{2 d}-\frac {a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac {e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}-\frac {b c e \log (x)}{d^2}+\frac {a e^2 \log (x)}{d^3}+\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{d^3}-\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}+\frac {b c e \log \left (1-c^2 x^2\right )}{2 d^2}-\frac {b e^2 \text {PolyLog}(2,-c x)}{2 d^3}+\frac {b e^2 \text {PolyLog}(2,c x)}{2 d^3}-\frac {b e^2 \text {PolyLog}\left (2,1-\frac {2}{1+c x}\right )}{2 d^3}+\frac {b e^2 \text {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 d^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 261, normalized size of antiderivative = 1.00, number of steps
used = 15, number of rules used = 13, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.684, Rules used = {6087, 6037,
331, 212, 272, 36, 29, 31, 6031, 6057, 2449, 2352, 2497} \begin {gather*} \frac {e^2 \log \left (\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{d^3}-\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2 c (d+e x)}{(c x+1) (c d+e)}\right )}{d^3}+\frac {e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}-\frac {a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac {a e^2 \log (x)}{d^3}+\frac {b c e \log \left (1-c^2 x^2\right )}{2 d^2}+\frac {b c^2 \tanh ^{-1}(c x)}{2 d}-\frac {b e^2 \text {Li}_2(-c x)}{2 d^3}+\frac {b e^2 \text {Li}_2(c x)}{2 d^3}-\frac {b e^2 \text {Li}_2\left (1-\frac {2}{c x+1}\right )}{2 d^3}+\frac {b e^2 \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (c x+1)}\right )}{2 d^3}-\frac {b c e \log (x)}{d^2}-\frac {b c}{2 d x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 212
Rule 272
Rule 331
Rule 2352
Rule 2449
Rule 2497
Rule 6031
Rule 6037
Rule 6057
Rule 6087
Rubi steps
\begin {align*} \int \frac {a+b \tanh ^{-1}(c x)}{x^3 (d+e x)} \, dx &=\int \left (\frac {a+b \tanh ^{-1}(c x)}{d x^3}-\frac {e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x^2}+\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right )}{d^3 x}-\frac {e^3 \left (a+b \tanh ^{-1}(c x)\right )}{d^3 (d+e x)}\right ) \, dx\\ &=\frac {\int \frac {a+b \tanh ^{-1}(c x)}{x^3} \, dx}{d}-\frac {e \int \frac {a+b \tanh ^{-1}(c x)}{x^2} \, dx}{d^2}+\frac {e^2 \int \frac {a+b \tanh ^{-1}(c x)}{x} \, dx}{d^3}-\frac {e^3 \int \frac {a+b \tanh ^{-1}(c x)}{d+e x} \, dx}{d^3}\\ &=-\frac {a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac {e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}+\frac {a e^2 \log (x)}{d^3}+\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{d^3}-\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}-\frac {b e^2 \text {Li}_2(-c x)}{2 d^3}+\frac {b e^2 \text {Li}_2(c x)}{2 d^3}+\frac {(b c) \int \frac {1}{x^2 \left (1-c^2 x^2\right )} \, dx}{2 d}-\frac {(b c e) \int \frac {1}{x \left (1-c^2 x^2\right )} \, dx}{d^2}-\frac {\left (b c e^2\right ) \int \frac {\log \left (\frac {2}{1+c x}\right )}{1-c^2 x^2} \, dx}{d^3}+\frac {\left (b c e^2\right ) \int \frac {\log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{1-c^2 x^2} \, dx}{d^3}\\ &=-\frac {b c}{2 d x}-\frac {a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac {e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}+\frac {a e^2 \log (x)}{d^3}+\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{d^3}-\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}-\frac {b e^2 \text {Li}_2(-c x)}{2 d^3}+\frac {b e^2 \text {Li}_2(c x)}{2 d^3}+\frac {b e^2 \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 d^3}+\frac {\left (b c^3\right ) \int \frac {1}{1-c^2 x^2} \, dx}{2 d}-\frac {(b c e) \text {Subst}\left (\int \frac {1}{x \left (1-c^2 x\right )} \, dx,x,x^2\right )}{2 d^2}-\frac {\left (b e^2\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+c x}\right )}{d^3}\\ &=-\frac {b c}{2 d x}+\frac {b c^2 \tanh ^{-1}(c x)}{2 d}-\frac {a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac {e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}+\frac {a e^2 \log (x)}{d^3}+\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{d^3}-\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}-\frac {b e^2 \text {Li}_2(-c x)}{2 d^3}+\frac {b e^2 \text {Li}_2(c x)}{2 d^3}-\frac {b e^2 \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{2 d^3}+\frac {b e^2 \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 d^3}-\frac {(b c e) \text {Subst}\left (\int \frac {1}{x} \, dx,x,x^2\right )}{2 d^2}-\frac {\left (b c^3 e\right ) \text {Subst}\left (\int \frac {1}{1-c^2 x} \, dx,x,x^2\right )}{2 d^2}\\ &=-\frac {b c}{2 d x}+\frac {b c^2 \tanh ^{-1}(c x)}{2 d}-\frac {a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac {e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}-\frac {b c e \log (x)}{d^2}+\frac {a e^2 \log (x)}{d^3}+\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{d^3}-\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}+\frac {b c e \log \left (1-c^2 x^2\right )}{2 d^2}-\frac {b e^2 \text {Li}_2(-c x)}{2 d^3}+\frac {b e^2 \text {Li}_2(c x)}{2 d^3}-\frac {b e^2 \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{2 d^3}+\frac {b e^2 \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 4.13, size = 435, normalized size = 1.67 \begin {gather*} -\frac {a}{2 d x^2}+\frac {a e}{d^2 x}+\frac {a e^2 \log (x)}{d^3}-\frac {a e^2 \log (d+e x)}{d^3}-\frac {b \left (\frac {c^2 d^3}{x}+i c d e^2 \pi \tanh ^{-1}(c x)-\frac {2 c d^2 e \tanh ^{-1}(c x)}{x}+\frac {c d^3 \left (1-c^2 x^2\right ) \tanh ^{-1}(c x)}{x^2}+2 c d e^2 \tanh ^{-1}\left (\frac {c d}{e}\right ) \tanh ^{-1}(c x)-c d e^2 \tanh ^{-1}(c x)^2+e^3 \tanh ^{-1}(c x)^2-\sqrt {1-\frac {c^2 d^2}{e^2}} e^3 e^{-\tanh ^{-1}\left (\frac {c d}{e}\right )} \tanh ^{-1}(c x)^2-2 c d e^2 \tanh ^{-1}(c x) \log \left (1-e^{-2 \tanh ^{-1}(c x)}\right )-i c d e^2 \pi \log \left (1+e^{2 \tanh ^{-1}(c x)}\right )+2 c d e^2 \tanh ^{-1}\left (\frac {c d}{e}\right ) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )+2 c d e^2 \tanh ^{-1}(c x) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )+i c d e^2 \pi \log \left (\frac {1}{\sqrt {1-c^2 x^2}}\right )+2 c^2 d^2 e \log \left (\frac {c x}{\sqrt {1-c^2 x^2}}\right )-2 c d e^2 \tanh ^{-1}\left (\frac {c d}{e}\right ) \log \left (i \sinh \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )\right )+c d e^2 \text {PolyLog}\left (2,e^{-2 \tanh ^{-1}(c x)}\right )-c d e^2 \text {PolyLog}\left (2,e^{-2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )\right )}{2 c d^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 3.80, size = 418, normalized size = 1.60
method | result | size |
derivativedivides | \(c^{2} \left (-\frac {a}{2 d \,c^{2} x^{2}}+\frac {a \,e^{2} \ln \left (c x \right )}{c^{2} d^{3}}+\frac {a e}{c^{2} d^{2} x}-\frac {a \,e^{2} \ln \left (c e x +d c \right )}{c^{2} d^{3}}-\frac {b \arctanh \left (c x \right )}{2 d \,c^{2} x^{2}}+\frac {b \arctanh \left (c x \right ) e^{2} \ln \left (c x \right )}{c^{2} d^{3}}+\frac {b \arctanh \left (c x \right ) e}{c^{2} d^{2} x}-\frac {b \arctanh \left (c x \right ) e^{2} \ln \left (c e x +d c \right )}{c^{2} d^{3}}-\frac {b \ln \left (c x -1\right )}{4 d}+\frac {b \ln \left (c x -1\right ) e}{2 c \,d^{2}}+\frac {b \ln \left (c x +1\right )}{4 d}+\frac {b \ln \left (c x +1\right ) e}{2 c \,d^{2}}-\frac {b e \ln \left (c x \right )}{c \,d^{2}}-\frac {b}{2 d c x}-\frac {b \,e^{2} \dilog \left (c x \right )}{2 c^{2} d^{3}}-\frac {b \,e^{2} \dilog \left (c x +1\right )}{2 c^{2} d^{3}}-\frac {b \,e^{2} \ln \left (c x \right ) \ln \left (c x +1\right )}{2 c^{2} d^{3}}-\frac {b \,e^{2} \ln \left (c e x +d c \right ) \ln \left (\frac {c e x -e}{-d c -e}\right )}{2 c^{2} d^{3}}-\frac {b \,e^{2} \dilog \left (\frac {c e x -e}{-d c -e}\right )}{2 c^{2} d^{3}}+\frac {b \,e^{2} \ln \left (c e x +d c \right ) \ln \left (\frac {c e x +e}{-d c +e}\right )}{2 c^{2} d^{3}}+\frac {b \,e^{2} \dilog \left (\frac {c e x +e}{-d c +e}\right )}{2 c^{2} d^{3}}\right )\) | \(418\) |
default | \(c^{2} \left (-\frac {a}{2 d \,c^{2} x^{2}}+\frac {a \,e^{2} \ln \left (c x \right )}{c^{2} d^{3}}+\frac {a e}{c^{2} d^{2} x}-\frac {a \,e^{2} \ln \left (c e x +d c \right )}{c^{2} d^{3}}-\frac {b \arctanh \left (c x \right )}{2 d \,c^{2} x^{2}}+\frac {b \arctanh \left (c x \right ) e^{2} \ln \left (c x \right )}{c^{2} d^{3}}+\frac {b \arctanh \left (c x \right ) e}{c^{2} d^{2} x}-\frac {b \arctanh \left (c x \right ) e^{2} \ln \left (c e x +d c \right )}{c^{2} d^{3}}-\frac {b \ln \left (c x -1\right )}{4 d}+\frac {b \ln \left (c x -1\right ) e}{2 c \,d^{2}}+\frac {b \ln \left (c x +1\right )}{4 d}+\frac {b \ln \left (c x +1\right ) e}{2 c \,d^{2}}-\frac {b e \ln \left (c x \right )}{c \,d^{2}}-\frac {b}{2 d c x}-\frac {b \,e^{2} \dilog \left (c x \right )}{2 c^{2} d^{3}}-\frac {b \,e^{2} \dilog \left (c x +1\right )}{2 c^{2} d^{3}}-\frac {b \,e^{2} \ln \left (c x \right ) \ln \left (c x +1\right )}{2 c^{2} d^{3}}-\frac {b \,e^{2} \ln \left (c e x +d c \right ) \ln \left (\frac {c e x -e}{-d c -e}\right )}{2 c^{2} d^{3}}-\frac {b \,e^{2} \dilog \left (\frac {c e x -e}{-d c -e}\right )}{2 c^{2} d^{3}}+\frac {b \,e^{2} \ln \left (c e x +d c \right ) \ln \left (\frac {c e x +e}{-d c +e}\right )}{2 c^{2} d^{3}}+\frac {b \,e^{2} \dilog \left (\frac {c e x +e}{-d c +e}\right )}{2 c^{2} d^{3}}\right )\) | \(418\) |
risch | \(-\frac {b c}{2 d x}+\frac {c^{2} b \ln \left (-c x \right )}{4 d}-\frac {c^{2} b \ln \left (-c x +1\right )}{4 d}+\frac {b \ln \left (-c x +1\right )}{4 d \,x^{2}}-\frac {c b e \ln \left (-c x \right )}{2 d^{2}}+\frac {c b e \ln \left (-c x +1\right )}{2 d^{2}}-\frac {b e \ln \left (-c x +1\right )}{2 d^{2} x}+\frac {b \,e^{2} \dilog \left (\frac {\left (-c x +1\right ) e -d c -e}{-d c -e}\right )}{2 d^{3}}+\frac {b \,e^{2} \ln \left (-c x +1\right ) \ln \left (\frac {\left (-c x +1\right ) e -d c -e}{-d c -e}\right )}{2 d^{3}}+\frac {b \dilog \left (-c x +1\right ) e^{2}}{2 d^{3}}-\frac {a \,e^{2} \ln \left (\left (-c x +1\right ) e -d c -e \right )}{d^{3}}-\frac {a}{2 d \,x^{2}}+\frac {a e}{d^{2} x}+\frac {a \,e^{2} \ln \left (-c x \right )}{d^{3}}-\frac {c^{2} b \ln \left (c x \right )}{4 d}+\frac {c^{2} b \ln \left (c x +1\right )}{4 d}-\frac {b \ln \left (c x +1\right )}{4 d \,x^{2}}-\frac {b c e \ln \left (c x \right )}{2 d^{2}}+\frac {b c e \ln \left (c x +1\right )}{2 d^{2}}+\frac {b e \ln \left (c x +1\right )}{2 d^{2} x}-\frac {b \,e^{2} \dilog \left (\frac {\left (c x +1\right ) e +d c -e}{d c -e}\right )}{2 d^{3}}-\frac {b \,e^{2} \ln \left (c x +1\right ) \ln \left (\frac {\left (c x +1\right ) e +d c -e}{d c -e}\right )}{2 d^{3}}-\frac {b \dilog \left (c x +1\right ) e^{2}}{2 d^{3}}\) | \(431\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \operatorname {atanh}{\left (c x \right )}}{x^{3} \left (d + e x\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {a+b\,\mathrm {atanh}\left (c\,x\right )}{x^3\,\left (d+e\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________